/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/*
 * SolicitarInventario.java
 *
 * Created on 05/07/2011, 09:19:29 PM
 */

package GUI;

import Interfaz.InterfazControl;
import Motor.ClaseUtilitaria;
import javax.swing.ImageIcon;
import Motor.Empleado;

/**
 *
 * @author Davielis
 */
public class SolicitarInventario extends javax.swing.JFrame {

    /** Creates new form SolicitarInventario */
	private InterfazControl control;
	private Empleado empleado1 ;
	private InterfazControl laInterfaz;
    public SolicitarInventario(InterfazControl laInterfaz,Empleado empleado) {
        initComponents();
		this.control=laInterfaz;
		empleado1=empleado;
        initComponents();
		this.setLocationRelativeTo(null); // Cambiar icono de java en ventana
        this.setIconImage(new ImageIcon("src/imagenes/marketplus2.png").getImage());
		jTFecha.setText(ClaseUtilitaria.tenerFechaActual());
    }

    /** This method is called from within the constructor to
     * initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is
     * always regenerated by the Form Editor.
     */
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        jLabel2 = new javax.swing.JLabel();
        jLabel4 = new javax.swing.JLabel();
        jTFecha = new javax.swing.JTextField();
        jLabel3 = new javax.swing.JLabel();
        jLabel1 = new javax.swing.JLabel();
        jCTipoInventario = new javax.swing.JComboBox();
        jScrollPane1 = new javax.swing.JScrollPane();
        jTextArea1 = new javax.swing.JTextArea();
        jLabel11 = new javax.swing.JLabel();
        jBRegresar = new javax.swing.JButton();
        jLabel5 = new javax.swing.JLabel();
        jTCodigoProducto = new javax.swing.JTextField();

        setDefaultCloseOperation(javax.swing.WindowConstants.DO_NOTHING_ON_CLOSE);
        setMinimumSize(new java.awt.Dimension(600, 520));
        setResizable(false);
        getContentPane().setLayout(null);

        jLabel2.setIcon(new javax.swing.ImageIcon(getClass().getResource("/imagenes/marketplus.png"))); // NOI18N
        getContentPane().add(jLabel2);
        jLabel2.setBounds(20, 10, 100, 94);

        jLabel4.setFont(new java.awt.Font("Tempus Sans ITC", 3, 24)); // NOI18N
        jLabel4.setText("Inventario Market Plus");
        getContentPane().add(jLabel4);
        jLabel4.setBounds(190, 30, 250, 40);

        jTFecha.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jTFechaActionPerformed(evt);
            }
        });
        getContentPane().add(jTFecha);
        jTFecha.setBounds(440, 120, 130, 20);

        jLabel3.setText("Fecha:");
        getContentPane().add(jLabel3);
        jLabel3.setBounds(380, 120, 60, 20);

        jLabel1.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Imagenes/inventario.jpg"))); // NOI18N
        getContentPane().add(jLabel1);
        jLabel1.setBounds(20, 150, 260, 280);

        jCTipoInventario.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Seleccione Inventario", "Inventario Total", "Inventario de Producto" }));
        getContentPane().add(jCTipoInventario);
        jCTipoInventario.setBounds(340, 150, 230, 20);

        jTextArea1.setColumns(20);
        jTextArea1.setRows(5);
        jScrollPane1.setViewportView(jTextArea1);

        getContentPane().add(jScrollPane1);
        jScrollPane1.setBounds(330, 210, 240, 200);

        jLabel11.setFont(new java.awt.Font("Tahoma", 1, 10)); // NOI18N
        jLabel11.setText("RIF: J-122231245          Desarrollado por: Group Delivery");
        getContentPane().add(jLabel11);
        jLabel11.setBounds(160, 460, 320, 20);

        jBRegresar.setFont(new java.awt.Font("Tahoma", 1, 11)); // NOI18N
        jBRegresar.setText("Regresar");
        jBRegresar.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jBRegresarActionPerformed(evt);
            }
        });
        getContentPane().add(jBRegresar);
        jBRegresar.setBounds(340, 420, 230, 23);

        jLabel5.setText("Código Producto:");
        getContentPane().add(jLabel5);
        jLabel5.setBounds(340, 180, 100, 14);
        getContentPane().add(jTCodigoProducto);
        jTCodigoProducto.setBounds(440, 180, 130, 20);

        pack();
    }// </editor-fold>//GEN-END:initComponents

	private void jTFechaActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jTFechaActionPerformed
		// TODO add your handling code here:
		jTFecha.setText(ClaseUtilitaria.tenerFechaActual());
}//GEN-LAST:event_jTFechaActionPerformed

	private void jBRegresarActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jBRegresarActionPerformed
		// TODO add your handling code here:
		Gerente irGerente = new Gerente(laInterfaz, empleado1);
		irGerente.setVisible(true);
		this.dispose();
}//GEN-LAST:event_jBRegresarActionPerformed

    /**
    * @param args the command line arguments
    */
   

    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JButton jBRegresar;
    private javax.swing.JComboBox jCTipoInventario;
    private javax.swing.JLabel jLabel1;
    private javax.swing.JLabel jLabel11;
    private javax.swing.JLabel jLabel2;
    private javax.swing.JLabel jLabel3;
    private javax.swing.JLabel jLabel4;
    private javax.swing.JLabel jLabel5;
    private javax.swing.JScrollPane jScrollPane1;
    private javax.swing.JTextField jTCodigoProducto;
    private javax.swing.JTextField jTFecha;
    private javax.swing.JTextArea jTextArea1;
    // End of variables declaration//GEN-END:variables

}
